home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
Foxpro 2.6 {Windows}
/
GETDEST.PR_
/
GETDEST.bin
Wrap
Text File
|
1994-03-10
|
26KB
|
760 lines
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ 02/09/94 GETDEST.SPR 22:22:16 ║
* ║ ║
* ╟─────────────────────────────────────────────────────────╢
* ║ ║
* ║ Author's Name ║
* ║ ║
* ║ Copyright (c) 1994 Company Name ║
* ║ Address ║
* ║ City, Zip ║
* ║ ║
* ║ Description: ║
* ║ This program was automatically generated by GENSCRN. ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
DO CASE
CASE _DOS OR _UNIX && no UNIX records in screen
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ MS-DOS Window definitions ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
IF NOT WEXIST("_qne1by63r")
DEFINE WINDOW _qne1by63r ;
FROM INT((SROW()-7)/2),INT((SCOL()-44)/2) ;
TO INT((SROW()-7)/2)+6,INT((SCOL()-44)/2)+43 ;
TITLE "Report Destination" ;
FLOAT ;
NOCLOSE ;
SHADOW ;
NOMINIMIZE ;
DOUBLE ;
COLOR SCHEME 5
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/MS-DOS Setup Code - SECTION 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .T.
repbut = 1 && default button choice
repdest = SPACE(40)
okbut = 0
* Disable the file options if 'file' isn't the default destination
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/MS-DOS Screen Layout ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
IF WVISIBLE("_qne1by63r")
ACTIVATE WINDOW _qne1by63r SAME
ELSE
ACTIVATE WINDOW _qne1by63r NOSHOW
ENDIF
@ 1,4 SAY "Report Destination:" ;
SIZE 1,19, 0
@ 2,8 GET repbut ;
PICTURE "@*RVN \<Screen;\<Printer" ;
SIZE 1,11,0 ;
DEFAULT 1 ;
VALID _qne1by74l()
@ 1,28 GET okbut ;
PICTURE "@*VT \!OK" ;
SIZE 1,10,1 ;
DEFAULT 1
@ 3,28 GET canclbut ;
PICTURE "@*HT \?Cancel" ;
SIZE 1,10,1 ;
DEFAULT 1 ;
VALID _qne1by78m()
IF NOT WVISIBLE("_qne1by63r")
ACTIVATE WINDOW _qne1by63r
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ MS-DOSREAD contains clauses from SCREEN getdest ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
READ CYCLE ;
DEACTIVATE _qne1by7p2() ;
SHOW _qne1by7p5() ;
MODAL
RELEASE WINDOW _qne1by63r
#REGION 0
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/MS-DOS Cleanup Code ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .F.
CASE _MAC
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
m.rborder = SET("READBORDER")
SET READBORDER OFF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ Macintosh Window definitions ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
IF NOT WEXIST("_qne1by81f")
DEFINE WINDOW _qne1by81f ;
AT 0.000, 0.000 ;
SIZE 5.692,42.000 ;
TITLE "Report Destination" ;
FONT "Geneva", 10 ;
FLOAT ;
NOCLOSE ;
SHADOW ;
DOUBLE
MOVE WINDOW _qne1by81f CENTER
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Macintosh Setup Code - SECTION 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .T.
repbut = 1 && default button choice
repdest = SPACE(40)
okbut = 0
* Disable the file options if 'file' isn't the default destination
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Macintosh Screen Layout ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
IF WVISIBLE("_qne1by81f")
ACTIVATE WINDOW _qne1by81f SAME
ELSE
ACTIVATE WINDOW _qne1by81f NOSHOW
ENDIF
@ 0.692,2.000 SAY "Report Destination:" ;
FONT "Geneva", 10
@ 1.846,4.000 GET repbut ;
PICTURE "@*RVN3 \<Screen;\<Printer" ;
SIZE 1.308,10.333,0.000 ;
DEFAULT 1 ;
FONT "Geneva", 10 ;
STYLE "T" ;
VALID _qne1by8ew()
@ 0.923,28.000 GET okbut ;
PICTURE "@*VT3 \!OK" ;
SIZE 1.462,10.000,1.000 ;
DEFAULT 1 ;
FONT "Geneva", 10 ;
STYLE "B"
@ 3.077,28.000 GET canclbut ;
PICTURE "@*HT3 \?Cancel" ;
SIZE 1.462,10.000,1.000 ;
DEFAULT 1 ;
FONT "Geneva", 10 ;
STYLE "B" ;
VALID _qne1by8kx()
IF NOT WVISIBLE("_qne1by81f")
ACTIVATE WINDOW _qne1by81f
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ MacintoshREAD contains clauses from SCREEN getdest ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
READ CYCLE ;
DEACTIVATE _qne1by8p2() ;
SHOW _qne1by8p9() ;
MODAL
RELEASE WINDOW _qne1by81f
#REGION 0
SET READBORDER &rborder
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Macintosh Cleanup Code ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .F.
CASE _WINDOWS
#REGION 0
REGIONAL m.currarea, m.talkstat, m.compstat
IF SET("TALK") = "ON"
SET TALK OFF
m.talkstat = "ON"
ELSE
m.talkstat = "OFF"
ENDIF
m.compstat = SET("COMPATIBLE")
SET COMPATIBLE FOXPLUS
m.rborder = SET("READBORDER")
SET READBORDER OFF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ Windows Window definitions ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
IF NOT WEXIST("_qne1by91g")
DEFINE WINDOW _qne1by91g ;
AT 0.000, 0.000 ;
SIZE 5.692,42.000 ;
TITLE "Report Destination" ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
FLOAT ;
NOCLOSE ;
SHADOW ;
NOMINIMIZE ;
DOUBLE ;
COLOR RGB(,,,192,192,192)
MOVE WINDOW _qne1by91g CENTER
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Windows Setup Code - SECTION 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .T.
repbut = 1 && default button choice
repdest = SPACE(40)
okbut = 0
* Disable the file options if 'file' isn't the default destination
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Windows Screen Layout ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
IF WVISIBLE("_qne1by91g")
ACTIVATE WINDOW _qne1by91g SAME
ELSE
ACTIVATE WINDOW _qne1by91g NOSHOW
ENDIF
@ 0.692,2.000 SAY "Report Destination:" ;
FONT "MS Sans Serif", 8 ;
STYLE "B"
@ 1.923,4.333 GET repbut ;
PICTURE "@*RVN \<Screen;\<Printer" ;
SIZE 1.308,11.167,0.000 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "BT" ;
VALID _qne1by9kp() ;
COLOR ,,,,,,,,RGB(,,,192,192,192),RGB(,,,192,192,192)
@ 0.923,28.000 GET okbut ;
PICTURE "@*VT \!\<OK" ;
SIZE 1.538,10.000,1.000 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B"
@ 3.077,28.000 GET canclbut ;
PICTURE "@*HT \?\<Cancel" ;
SIZE 1.538,10.000,1.000 ;
DEFAULT 1 ;
FONT "MS Sans Serif", 8 ;
STYLE "B" ;
VALID _qne1by9qq()
IF NOT WVISIBLE("_qne1by91g")
ACTIVATE WINDOW _qne1by91g
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ WindowsREAD contains clauses from SCREEN getdest ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
READ CYCLE ;
DEACTIVATE _qne1by9va() ;
SHOW _qne1by9vf() ;
MODAL
RELEASE WINDOW _qne1by91g
#REGION 0
SET READBORDER &rborder
IF m.talkstat = "ON"
SET TALK ON
ENDIF
IF m.compstat = "ON"
SET COMPATIBLE ON
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ GETDEST/Windows Cleanup Code ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
#REGION 1
skipvar = .F.
ENDCASE
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY74L repbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: MS-DOS ║
* ║ From Screen: GETDEST, Record Number: 9 ║
* ║ Variable: repbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Radio Button ║
* ║ Snippet Number: 1 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by74l && repbut VALID
#REGION 1
IF repbut <> 3
SHOW GET rfile DISABLE
SHOW GET repdest DISABLE
ELSE
SHOW GET rfile ENABLE
SHOW GET repdest ENABLE
_CUROBJ = 5
ENDIF
SHOW GETS
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY78M canclbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: MS-DOS ║
* ║ From Screen: GETDEST, Record Number: 11 ║
* ║ Variable: canclbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Push Button ║
* ║ Snippet Number: 2 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by78m && canclbut VALID
#REGION 1
repdest = ''
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY7P2 Read Level Deactivate ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: MS-DOS ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 3 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by7p2 && Read Level Deactivate
*
* Deactivate Code from screen: GETDEST
*
#REGION 1
?? CHR(7)
RETURN .F.
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY7P5 Read Level Show ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: MS-DOS ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 4 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by7p5 && Read Level Show
PRIVATE currwind
STORE WOUTPUT() TO currwind
*
* Show Code from screen: GETDEST
*
#REGION 1
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
IF repbut = 3 AND EMPTY(repdest)
SHOW GET okbut DISABLE
ELSE
SHOW GET okbut ENABLE
ENDIF
IF NOT EMPTY(currwind)
ACTIVATE WINDOW (currwind) SAME
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY8EW repbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Macintosh ║
* ║ From Screen: GETDEST, Record Number: 14 ║
* ║ Variable: repbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Radio Button ║
* ║ Snippet Number: 5 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by8ew && repbut VALID
#REGION 1
IF repbut <> 3
SHOW GET rfile DISABLE
SHOW GET repdest DISABLE
ELSE
SHOW GET rfile ENABLE
SHOW GET repdest ENABLE
_CUROBJ = 5
ENDIF
SHOW GETS
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY8KX canclbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Macintosh ║
* ║ From Screen: GETDEST, Record Number: 16 ║
* ║ Variable: canclbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Push Button ║
* ║ Snippet Number: 6 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by8kx && canclbut VALID
#REGION 1
repdest = ''
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY8P2 Read Level Deactivate ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: Macintosh ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 7 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by8p2 && Read Level Deactivate
*
* Deactivate Code from screen: GETDEST
*
#REGION 1
?? CHR(7)
RETURN .F.
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY8P9 Read Level Show ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: Macintosh ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 8 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by8p9 && Read Level Show
PRIVATE currwind
STORE WOUTPUT() TO currwind
*
* Show Code from screen: GETDEST
*
#REGION 1
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
IF repbut = 3 AND EMPTY(repdest)
SHOW GET okbut DISABLE
ELSE
SHOW GET okbut ENABLE
ENDIF
IF NOT EMPTY(currwind)
ACTIVATE WINDOW (currwind) SAME
ENDIF
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY9KP repbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: GETDEST, Record Number: 3 ║
* ║ Variable: repbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Radio Button ║
* ║ Snippet Number: 9 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by9kp && repbut VALID
#REGION 1
IF repbut <> 3
SHOW GET rfile DISABLE
SHOW GET repdest DISABLE
ELSE
SHOW GET rfile ENABLE
SHOW GET repdest ENABLE
_CUROBJ = 5
ENDIF
SHOW GETS
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY9QQ canclbut VALID ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: GETDEST, Record Number: 5 ║
* ║ Variable: canclbut ║
* ║ Called By: VALID Clause ║
* ║ Object Type: Push Button ║
* ║ Snippet Number: 10 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by9qq && canclbut VALID
#REGION 1
repdest = ''
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY9VA Read Level Deactivate ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 11 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by9va && Read Level Deactivate
*
* Deactivate Code from screen: GETDEST
*
#REGION 1
?? CHR(7)
RETURN .F.
* ╓─────────────────────────────────────────────────────────╖
* ║ ║
* ║ _QNE1BY9VF Read Level Show ║
* ║ ║
* ║ Function Origin: ║
* ║ ║
* ║ ║
* ║ From Platform: Windows ║
* ║ From Screen: GETDEST ║
* ║ Called By: READ Statement ║
* ║ Snippet Number: 12 ║
* ║ ║
* ╙─────────────────────────────────────────────────────────╜
*
FUNCTION _qne1by9vf && Read Level Show
PRIVATE currwind
STORE WOUTPUT() TO currwind
*
* Show Code from screen: GETDEST
*
#REGION 1
IF repbut = 3
SHOW GET repdest ENABLE
SHOW GET rfile ENABLE
ELSE
SHOW GET repdest DISABLE
SHOW GET rfile DISABLE
ENDIF
IF repbut = 3 AND EMPTY(repdest)
SHOW GET okbut DISABLE
ELSE
SHOW GET okbut ENABLE
ENDIF
IF NOT EMPTY(currwind)
ACTIVATE WINDOW (currwind) SAME
ENDIF